//
//  MyOrderCell.h
//  jiyujiaProgram
//
//  Created by Jame on 15/11/22.
//  Copyright © 2015年 中良 赵. All rights reserved.
//

#import <UIKit/UIKit.h>

@class MyOrderCell;

@protocol MyOrderCellDelegate <NSObject>

@optional

- (void)myOrderCell:(MyOrderCell *)cell commentClick:(UIButton *)comment;
- (void)myOrderCell:(MyOrderCell *)cell chatClick:(UIButton *)chat;
- (void)myOrderCell:(MyOrderCell *)cell payClick:(UIButton *)pay;
- (void)myOrderCell:(MyOrderCell *)cell cancelClick:(UIButton *)cancel;
@end

@interface MyOrderCell : UITableViewCell

@property (nonatomic, unsafe_unretained) id <MyOrderCellDelegate> delegate;

@property (strong, nonatomic) IBOutlet UILabel *orderTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *orderIdLabel;
@property (strong, nonatomic) IBOutlet UILabel *cheapLabel;
@property (strong, nonatomic) IBOutlet UILabel *courseTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *priceLabel;
@property (strong, nonatomic) IBOutlet UILabel *classTimeLabel;
@property (strong, nonatomic) IBOutlet UILabel *typeLabel;
@property (strong, nonatomic) IBOutlet UILabel *titleLabel;
@property (strong, nonatomic) IBOutlet UILabel *nameLabel;
@property (strong, nonatomic) IBOutlet UIImageView *headImage;
@property (strong, nonatomic) IBOutlet UIButton *commentButton;
@property (strong, nonatomic) IBOutlet UILabel *payTypeLabel;
@property (strong, nonatomic) IBOutlet UILabel *payMoneyLabel;
@property (strong, nonatomic) IBOutlet UIButton *chatButton;
@property (strong, nonatomic) IBOutlet UIButton *payButton;
@property (strong, nonatomic) IBOutlet UIButton *cancelButton;

- (void)setCellWithModel:(NSArray *)model WithIndexPath:(NSIndexPath *)indexPath WithSegment:(NSInteger)segment;

- (IBAction)payClick:(id)sender;
- (IBAction)commentClick:(id)sender;
- (IBAction)chatClick:(id)sender;
- (IBAction)cancelClick:(id)sender;

@end
